<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/7/26 0026
 * Time: 20:00
 */

namespace app\api\controller;

use framework\library\Controller;

class BaseController extends Controller
{

    public function jsonData($code, $msg, $data)
    {
        $res = [
            "code" => $code,
            "msg" => $msg,
            "data" => $data
        ];

        return json_encode($res, JSON_UNESCAPED_UNICODE);
    }

}